package org.tinygroup.dbf;

import java.io.IOException;

/**
 * Dbf数据集，用来存储DBF数据内容
 * Created by luoguo on 2014/7/10.
 */
public interface DbfDataSet {

    void moveBeforeFirst() throws IOException;

    /**
     * 下一行数据
     *
     * @return
     */
    boolean next();

    /**
     * 绝对定位到某一行
     *
     * @param position
     * @throws IOException
     */
    boolean absolute(int position) throws IOException;

    /**
     * 返回当前记录
     *
     * @return
     */
    DbfRecord getDbfRecord() throws IOException;
    
    /**
     * 返回记录集总数
     * 
     * @return int
     * 
     * 
     * */
  
    int getDbfRecordCount();


}
